<?php
/**
 *  view: moderator activity
 *  File: moderator/activity.php
 */
?>

<h1><?php echo lang('moderator_activity'); ?></h1>


<form method="post" id="form-filter" name='form-statistic-filter' action="" >
    <fieldset class="ui-widget-content ui-corner-all field_filter" >
        <legend class="ui-widget-content ui-corner-all"><?= lang('filter') ?></legend>
        <div style='display: block; width: 100%; clear: both; height:30px;'>
        <label ><?= lang('team') ?>: </label>
        <label ><?= lang('date_from') ?>: </label>
        
        <label ><?= lang('date_to') ?>: </label>
        </div>
         <select name="filter[team]" id="filter_state" class="text ui-widget-content ui-corner-all">
            <option value=""><?= lang('all') ?></option>
            <?php foreach ($teams as $team) echo " <option value=".$team->id.">".$team->name."</option>";?>
        </select>
        <input type="text"  name="filter[date_from]" id="date_from" placeholder="<?php echo lang('date_from') ?>" class="text date_picker ui-widget-content ui-corner-all"/>
        <input type="text"  name="filter[date_to]" id="date_to" placeholder="<?php echo lang('date_to') ?>" class="text date_picker ui-widget-content ui-corner-all"/><br/><br/>
       
        <input type="button" name="filter_submit" id="filter_submit" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all" value="<?php echo lang('search');?>" />
       <input type="reset" name="filter_reset" id="filter_reset" class="ui-button ui-button-text-only ui-widget ui-state-default ui-corner-all" value="<?php echo lang('reset');?>" />
        <br/>
         </fieldset>
</form>
<br/>

        <table id="mod_activity" class='dialog_table' width='100%' cellpadding=3px cellspacing=0>
            <thead>    
            <th><?= lang('date') ?></th>
            <th><?= lang('moderator') ?></th>
            <th><?= lang('num_outs') ?></th>
            <th><?= lang('num_ins') ?></th>
            </thead>
            <tbody >
                <?php
                $this->load->view('moderators/statistic_list');
                ?>
            </tbody>

        </table>
<a href="<?=LINK_URL?>moderators" ><< <?php echo lang('moderators');?></a>
<div id="dialog-user" class="hide" title="<?php echo lang('term_user'); ?>"></div>